//
//  BaseViewController.m
//  OCDome
//
//  Created by 李含文 on 2020/7/30.
//  Copyright © 2020 李含文. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = @"F7F7F7".hw_toColor;
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self hw_switchNavColor:UIColor.whiteColor];
    if (self.navigationController.navigationBar.hidden == YES) {
        self.navigationController.navigationBar.hidden = NO;
    }
    #ifdef DEBUG
        NSLog(@"进入-->%@",[self class]);
    #endif
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    NSLog(@"内存溢出");
}
- (void)dealloc {
    #ifdef DEBUG
        NSLog(@"释放-->%@",[self class]);
    #endif
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}
@end
